<div class="depot-form">
  <%= error_messages_for 'role' %>
  <fieldset>
    <legend>Enter Role Details</legend>
    <% form_for @role do |form| %>
      <p>
        <label for="name" >Role Name:</label>
        <%= form.text_field :name, :size => "50px" %>
      </p>  
      <p>
        <label for="code" >Role Code:</label>
        <%= form.text_field :code, :size => "50px" %>
      </p>    
      <p>
        <label for="description" >Role Description:</label>
        <%= form.text_area :description, :cols => "38px"%>
      </p> 
      <%= submit_tag "Update Role", :class => "submit"%>
    <% end %>
  </fieldset>
  <%= link_to 'Back', :action =>"index" %>
</div>